package com.baizhi.service;

import com.baizhi.entity.Brand;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author longyang
 * @since 2022-01-19
 */
public interface IBrandService extends IService<Brand> {
    PageInfo<Brand> selectBrandByCategoryId(Integer categoryId, int pageNum, int pageSize);
    //添加品牌
    Integer addBrand(Brand brand);
    //删除品牌
    Integer deleteBrand(Integer brandId);
    //根据品牌id查询品牌信息
    Brand selectBrandById(Integer brandId);
    //修改品牌
    Integer updateBrand(Brand brand);

}
